package demo1;
class Student{

}

public class Test {
    public static void main(String[] args) {
        MyArrays<Student> myArrays = new MyArrays<>();
        myArrays.setArray(0,new Student());
        Student student1 = myArrays.getPos(0);
    }
    public static void main1(String[] args) {
        MyArrays<String> myArrays = new MyArrays<>();
        myArrays.setArray(0,"abcd");
       // myArrays.setArray(1,10); EROO已经限定了是String类型
        String ret = (String) myArrays.getPos(0);
    }
}
